home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI544.ASC < prev    next >
Text File  |  1992-09-03  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   PRODUCT  :  PARADOX                                NUMBER  :  544
  8.   VERSION  :  3.x
  9.        OS  :  DOS
  10.      DATE  :  September 3, 1992                        PAGE  :  1/2
  11.  
  12.     TITLE  :  USING QUERYSPEEDUP TO IMPROVE APPLICATION
  13.               PERFORMANCE IN PERSONAL PROGRAMMER
  14.  
  15.  
  16.  
  17.  
  18.   The QuerySpeedup option (see page 191 of the Paradox User's
  19.   Guide) creates a secondary index or "key field" designation to
  20.   improve search and sort times when processing data in a large
  21.   table which already contains a primary key field.  In Personal
  22.   Programmer, operations involving the SelectRecords or Sort
  23.   functions can be significantly accelerated.
  24.  
  25.   Establishing a secondary index (using QuerySpeedup) is quite
  26.   easy.  Simply view the table you wish to accelerate query options
  27.   on (you may have to change the working directory to PPROG or
  28.   wherever the application is stored) and select
  29.   Tools/QuerySpeedup.  This will create a file with the same
  30.   filename as the table but with a .X00 or .Y00 extension.  The
  31.   message "QuerySpeedup Recorded" will appear at the bottom of your
  32.   screen.  Once created, however, the index must be maintained to
  33.   continue to accelerate processing time.
  34.  
  35.   If the table in question is "keyed" (i.e., contains a primary
  36.   index field indicated by an asterisk next to the field type in
  37.   the table structure), then the option "MaintainIndexes" in the
  38.   Custom Configuration Program (page 265 of the User's Guide) must
  39.   be set to YES.  This allows Personal Programmer (and Paradox) to
  40.   incrementally update the secondary index every time a change is
  41.   made to the table.  Once this selection has been made and the
  42.   changes saved, a new PARADOX3.CFG will be created.  In order for
  43.   these changes to have an effect in Personal Programmer, the
  44.   PARADOX3.CFG file needs to be copied into the PPROG subdirectory
  45.   and renamed PPROG.CFG (using the DOS copy and rename commands,
  46.   respectively).
  47.  
  48.   If the original table is not keyed, however, the secondary index
  49.   will not be recognized or maintained until a query
  50.   (SelectRecords) is generated.  This may actually have a negative
  51.   effect on processing speed when the query is generated because
  52.   the application has to first update the secondary index and then
  53.   process the operation.  (Note, if the same query is run a second
  54.   time before any changes have been made to the table, performance
  55.   will be improved -- but only until the next time the table is
  56.   changed in any way).  Therefore, the use of QuerySpeedup on non-
  57.   keyed tables is not recommended unless a number of queries are
  58.   going to be used and no changes are made to the table between
  59.   queries.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.   PRODUCT  :  PARADOX                                NUMBER  :  544
  74.   VERSION  :  3.x
  75.        OS  :  DOS
  76.      DATE  :  September 3, 1992                        PAGE  :  2/2
  77.  
  78.     TITLE  :  USING QUERYSPEEDUP TO IMPROVE APPLICATION
  79.   PERFORMANCE IN PERSONAL PROGRAMMER
  80.  
  81.  
  82.  
  83.  
  84.   DISCLAIMER: You have the right to use this technical information
  85.   subject to the terms of the No-Nonsense License Statement that
  86.   you received with the Borland product to which this information
  87.   pertains.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.